<?php /* Smarty version 2.6.26, created on 2014-02-07 08:05:35
         compiled from sidebar.tpl.php */ ?>
		<div class="boxBetween2"></div>

		<div class="boxRight2">
		
			<div class="boxLiveStats">

				<div class="boxTitle"><img src="images/i_livestats2.png">&nbsp; Live Stats</div>
				<div class="dottedRow">Welcome, <font color="#00a0c2"><?php echo $this->_tpl_vars['uloggedUser']; ?>
</font>!</div>
				<div class="dottedRowLeft">Earnings Today</div><div class="dottedRowRight" id="LS_todayEarnings">$<?php echo $this->_tpl_vars['today_earnings']; ?>
</div>
				<div class="dottedRowLeft">Earnings This Month</div><div class="dottedRowRight" id="LS_monthEarnings">$<?php echo $this->_tpl_vars['month_earnings']; ?>
</div>
				<div class="dottedRowLeft">Available Balance</div><div class="dottedRowRight" id="LS_availableBalance">$<?php echo $this->_tpl_vars['total_earnings']; ?>
</div>
				<center><a href="logout.php"><img src="images/b_logout.png" onmouseover="this.src='images/b_logout_over.png'" onmouseout="this.src='images/b_logout.png'" style="margin-top: 8px;" border="0" alt="Logout"></a></center>

			</div>

			<div class="h30"></div>

			<div class="boxNav">

				<!--Menu-->


				<!--navs-->
				<div class="parent" <?php if ($this->_tpl_vars['script'] == 'dashboard' || $this->_tpl_vars['script'] == 'account' || $this->_tpl_vars['script'] == 'cashout'): ?> id="currentNavigation"<?php endif; ?>><a href="#">Dashboard</a></div>
				<div class="child" id="nm_dashboard">
				<a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
dashboard.php">&raquo; Member Home</a>
				<a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
account.php" >&raquo; Account Settings</a>
				<a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
cashout.php" style="border-bottom:0">&raquo; Request Payment</a>
				</div>

				<div class="parent" <?php if ($this->_tpl_vars['script'] == 'stats' || $this->_tpl_vars['script'] == 'analytics'): ?> id="currentNavigation"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
stats.php">Statistics</a></div>

				<div class="parent" <?php if ($this->_tpl_vars['script'] == 'files' || $this->_tpl_vars['script'] == 'upload'): ?> id="currentNavigation"<?php endif; ?>><a href="#">Files</a></div>
				<div class="child" id="nm_links">
				<a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
upload.php">&raquo; Upload Files</a>
				<a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
files.php" style="border-bottom:0">&raquo; Manage Files</a>
				</div>


				<div class="parent" <?php if ($this->_tpl_vars['script'] == 'gateways' || $this->_tpl_vars['script'] == 'creat' || $this->_tpl_vars['script'] == 'edit'): ?> id="currentNavigation"<?php endif; ?>><a href="#">Content Gateways</a></div>
				<div class="child" id="nm_gateways">
				<a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
create.php">&raquo; Create Gateway</a>
				<a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
gateways.php" style="border-bottom:0">&raquo; Manage Gateways</a>
				</div>

				<div class="parent" <?php if ($this->_tpl_vars['script'] == 'links' || $this->_tpl_vars['script'] == 'upload_link'): ?> id="currentNavigation"<?php endif; ?>><a href="#">Links</a></div>
				<div class="child" id="nm_files">
				<a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
upload_link.php">&raquo; Add Link</a>
				<a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
links.php" style="border-bottom:0">&raquo; Manage Links</a>
				</div>




				<div class="parent" <?php if ($this->_tpl_vars['script'] == 'referrals'): ?> id="currentNavigation"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
referrals.php">Referrals</a></div>
				<div class="parent" <?php if ($this->_tpl_vars['script'] == 'leaderboard'): ?> id="currentNavigation"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
leaderboard.php">Leaderboard</a></div>
				<?php if ($this->_tpl_vars['messages_enabled'] == 1): ?>
				<div class="parent" <?php if ($this->_tpl_vars['script'] == 'messages' || $this->_tpl_vars['script'] == 'sendmessage' || $this->_tpl_vars['script'] == 'message'): ?> id="currentNavigation"<?php endif; ?>><a href="#">Message Center</a></div>
				<div class="child" id="nm_files">
				<a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
messages.php">&raquo; My Messages</a>
				<a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
sendmessage.php" style="border-bottom:0">&raquo; Send Message</a>
				</div>
				<?php endif; ?>

				<div class="navGreyBottom"><a href="<?php echo $this->_tpl_vars['SITE_URL']; ?>
logout.php">Logout</a></div>

				<!--end Navs-->


				<!--end Menu-->




				<?php echo '
				<script type="text/javascript">

				$(document).ready(function(){
					

				 $(\'.parent, #currentNavigation\').click(function(e){
					 e.preventDefault();
					 
					if($(this).next().attr(\'class\') == \'child\'){
					
					$(this).removeClass(\'parent\').addClass(\'parentSel\');
					
					$(this).next().slideToggle(\'fast\', function(){
						  if($(this).is(":hidden")){
							 
							 $(this).prev().removeClass(\'parentSel\').addClass(\'parent\');

								  
						  }else
						  {

							  $(this).prev().removeClass(\'parent\').addClass(\'parentSel\');
  			  			  
						  }
					 });
					 
				   }else
				   {
					   $(this).removeClass(\'parent\').addClass(\'parentSel\');
				   

						 if(window.location.href != $(this).find(\'a\').attr(\'href\')) 
						 {
							 if($(this).find(\'a\').attr(\'target\') == \'_blank\')
							 window.open($(this).find(\'a\').attr(\'href\'), \'_blank\');
							 else
							 window.location.href = $(this).find(\'a\').attr(\'href\'); 
							 
						 }
					  }
				 });
				 
				 
				 //$(\'#currentNavigation\').click();
				  $(\'#currentNavigation\').addClass(function(){
					  
					//  $(this).removeClass(\'parent\').addClass(\'parentSel\');
					  
					  if($(this).next().attr(\'class\') == \'child\'){
					
					$(this).removeClass(\'parent\').addClass(\'parentSel\');
					
					$(this).next().slideToggle(\'fast\', function(){
						  if($(this).is(":hidden")){
							 
							 $(this).prev().removeClass(\'parentSel\').addClass(\'parent\');
							  $(this).prev().css(\'border-bottom-width\', \'0\');  

								  
						  }else
						  {

							  $(this).prev().removeClass(\'parent\').addClass(\'parentSel\');
  			  
						  }
					 });
					 
				   }else{ $(\'#currentNavigation\').addClass(\'parentSel\');}	  
					  
					  
					  });


					
				});




				</script>
				'; ?>


			</div>

			<div class="h30"></div>

			<div class="boxDailyRank">

				<div class="boxTitle"><img src="images/i_dailyrank2.png">&nbsp; Daily Rank</div>


				<?php if ($this->_tpl_vars['myRank'] == ""): ?>

				<center><br><br><br>You are not yet ranked in top 100!</center>

				<?php else: ?>
				<div class="dottedRow" style="height: 64px; line-height: 64px;">Your rank today is&nbsp;&nbsp; <font style="color: #00a0c2; font-size: 50px; vertical-align: middle;">#<?php echo $this->_tpl_vars['myRank']; ?>
</font></div>
				<?php if ($this->_tpl_vars['myRank'] > 1): ?>
				<div class="noneRow2">You need <?php echo $this->_tpl_vars['myGoal']; ?>
 to move up.</div>
				<?php endif; ?>

				<?php endif; ?>
				

			</div>
		
		</div>

		<div class="h30"></div>

	</div>

</div>